﻿using System;
using System.Collections.Generic;
using System.Linq;

namespace BeerStats.Models
{
    public class User
    {
        private ICollection<Beer> beers;

        public int UserId { get; set; }

        public string Username { get; set; }

        public string Email { get; set; }

        public string AuthenticationCode { get; set; }

        public string AccessToken { get; set; }

        public ICollection<Beer> Beers
        {
            get
            {
                return this.beers;
            }
            set
            {
                this.beers = value;
            }
        }

        public User()
        {
            this.Beers = new HashSet<Beer>();
        }


    }
}
